<?php
// Define path to application directory
defined('APPLICATION_PATH')
    || define('APPLICATION_PATH',
              realpath(dirname(__FILE__) . '/application'));


// Define application environment,chon vung lam viec la developer
defined('APPLICATION_ENV')
    || define('APPLICATION_ENV',
              (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV')
                                         : 'developer'));
//Neu khong set duong dan den thu vien thi khong the: require_once('Zend/Application.php')
set_include_path(implode(PATH_SEPARATOR, array(
    dirname(__FILE__) . '/library',
	get_include_path(),
)));

//Duong dan tuyet doi den thu muc public
define('PUBLIC_PATH', dirname(__FILE__) . '/public');
//Duong dan tuyet doi den thu muc template
define('TEMPLATE_PATH',PUBLIC_PATH . '/templates');
//duong dan tuong doi
define('APPLICATION_URL', '/zend0118gcode');
define('PUBLIC_URL', APPLICATION_URL . '/public');
define('TEMPLATE_URL', PUBLIC_URL . '/templates');

